#ifndef __USER_HPP__
#define __USER_HPP__

#include <string>
using namespace std;

class User
{
public:
    User(int id = -1, string name = "", string password = "", string state = "offline")
        : _id(id), _name(name), _password(password), _state(state)
    {}

    int getId() const { return _id; }
    string getName() const { return _name; }
    string getPwd() const { return _password; }
    string getState() const { return _state; }

    void setId(int id) { _id = id; }
    void setName(string name) { _name = name; }
    void setPwd(string password) { _password = password; }
    void setState(string state) { _state = state; }

// private:
protected:
    int _id;
    string _name;
    string _password;
    string _state;
};

#endif